import request from '@/utils/request'

// 查询成员信息列表
export function listMemberInfo(query) {
  return request({
    url: '/business/memberInfo/list',
    method: 'get',
    params: query
  })
}

// 查询成员信息详细
export function getMemberInfo(memberId) {
  return request({
    url: '/business/memberInfo/' + memberId,
    method: 'get'
  })
}

// 新增成员信息
export function addMemberInfo(data) {
  return request({
    url: '/business/memberInfo',
    method: 'post',
    data: data
  })
}

// 修改成员信息
export function updateMemberInfo(data) {
  return request({
    url: '/business/memberInfo',
    method: 'put',
    data: data
  })
}

// 删除成员信息
export function delMemberInfo(memberId) {
  return request({
    url: '/business/memberInfo/' + memberId,
    method: 'delete'
  })
}


// 查询所有成员信息列表
export function getMemberInfoList() {
  return request({
    url: '/business/memberInfo/allMemberInfo',
    method: 'post',
  })
}

// 员工审批
export function memberApproval(data) {
  return request({
    url: '/business/memberInfo/allMemberInfo',
    method: 'post',
    params: data
  })
}
/** 获取护理人员 **/
export function getNurseMember(){
  return request({
    url: '/business/memberInfo/getNurseMember',
    method: 'post',
  })
}
// 修改成员信息
export function updateMember(data) {
  return request({
    url: '/business/memberInfo/update',
    method: 'post',
    data: data
  })
}
